import Vue from "vue";
import Router from 'vue-router';
import Main from "../views/Main";
import Login from "@/views/Login";
import HongSeZhiLv from "@/views/HongSeZhiLv"
import WangZhanLiuYan from "@/views/WangZhanLiuYan";
import ZhengWuYaoWen from "@/views/ZhengWuYaoWen"

Vue.use(Router)
export default new Router({
    mode: "history",
    routes: [{
        path: '/',
        name: 'home',
        redirect: 'login'
    },{
        path: '/login',
        name: 'login',
        component: Login,
    },{
        path: '/main',
        name: 'main',
        component: Main,
        redirect: 'hszl',
        children: [{
            path: '/hszl',
            name: 'hongsezhilv',
            component: HongSeZhiLv
        },{
            path: '/wzly',
            name: 'wangzhanliuyan',
            component: WangZhanLiuYan
        },{
            path: '/zwyw',
            name: 'zhengwuyaowen',
            component: ZhengWuYaoWen
        }]
    }]

})
